#if !defined(AFX_ATTRIBUTEBAR_H__BBC57FFE_A113_436D_84B8_B6DA6C20786D__INCLUDED_)
#define AFX_ATTRIBUTEBAR_H__BBC57FFE_A113_436D_84B8_B6DA6C20786D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AttributeBar.h : header file
//

#include "IconListBox.h"

/////////////////////////////////////////////////////////////////////////////
// CAttributeBar dialog

class CAttributeBar : public CDialogBar
{
// Construction
public:
	COLORREF m_BackColor;			// background color
	COLORREF m_ForeColor;			// foreground color
	int m_LineWidth;				// the width of line
	long m_LineStyle;				// the style of line
	BOOL m_bFilled;					// whether filled
	CAttributeBar(CWnd* pParent = NULL);   // standard constructor

	void OnMenuSetback();
	void OnMenuSetfore();

// Dialog Data
	//{{AFX_DATA(CAttributeBar)
	enum { IDD = IDD_DRAW_ATTRIBUTE };
	CIconListBox	m_LFillStyle;
	CComboBox	m_CLineWidth;
	CComboBox	m_CLineStyle;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAttributeBar)
	public:
	virtual BOOL Create(CWnd* pParentWnd,UINT nIDTemplate,UINT nStyle,UINT nID);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CFont m_font;
	BOOL InitDialogBar();
	// Generated message map functions
	//{{AFX_MSG(CAttributeBar)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg void OnSelendokComboLinewidth();
	afx_msg void OnSelchangeListFillstyle();
	afx_msg void OnSelendokComboLinestyle();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ATTRIBUTEBAR_H__BBC57FFE_A113_436D_84B8_B6DA6C20786D__INCLUDED_)

